<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFrameworks>$(NetCoreAppCurrent);$(NetCoreAppPrevious);$(NetCoreAppMinimum);netstandard2.0;$(NetFrameworkMinimum)</TargetFrameworks>
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
    <UseCompilerGeneratedDocXmlFile>false</UseCompilerGeneratedDocXmlFile>
    <IsPackable>true</IsPackable>
    <PackageDescription>Provides support for CBOR Object Signing and Encryption (COSE).</PackageDescription>
  </PropertyGroup>

  <ItemGroup>
    <Compile Include="$(CommonPath)System\HashCodeRandomization.cs"
             Link="Common\System\HashCodeRandomization.cs" />
    <Compile Include="$(CommonPath)System\Memory\PointerMemoryManager.cs"
             Link="Common\System\Memory\PointerMemoryManager.cs" />
    <Compile Include="$(CommonPath)System\Security\Cryptography\IncrementalHash.netfx.cs"
             Link="Common\System\Security\Cryptography\IncrementalHash.cs"
             Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'" />
    <Compile Include="$(LibrariesProjectRoot)System.Formats.Cbor\src\System\Formats\Cbor\CborInitialByte.cs"
             Link="System\Formats\Cbor\CborInitialByte.cs" />

    <Compile Include="System\Security\Cryptography\Cose\CoseHeaderLabel.cs" />
    <Compile Include="System\Security\Cryptography\Cose\CoseHeaderMap.cs" />
    <Compile Include="System\Security\Cryptography\Cose\CoseHeaderValue.cs" />
    <Compile Include="System\Security\Cryptography\Cose\CoseHelpers.cs" />
    <Compile Include="System\Security\Cryptography\Cose\CoseMessage.cs" />
    <Compile Include="System\Security\Cryptography\Cose\CoseMultiSignMessage.cs" />
    <Compile Include="System\Security\Cryptography\Cose\CoseSign1Message.cs" />
    <Compile Include="System\Security\Cryptography\Cose\CoseSignature.cs" />
    <Compile Include="System\Security\Cryptography\Cose\CoseSigner.cs" />
    <Compile Include="System\Security\Cryptography\Cose\KeyType.cs" />
    <Compile Include="System\Security\Cryptography\Cose\KnownCoseAlgorithms.cs" />
    <Compile Include="System\Security\Cryptography\Cose\KnownHeaders.cs" />
    <Compile Include="System\Security\Cryptography\Cose\SigStructureContext.cs" />
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="$(LibrariesProjectRoot)System.Formats.Cbor\src\System.Formats.Cbor.csproj" />
  </ItemGroup>

  <!-- For System.HashCode -->
  <ItemGroup Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'">
    <PackageReference Include="Microsoft.Bcl.HashCode" Version="$(MicrosoftBclHashCodeVersion)" />
  </ItemGroup>

</Project>
